home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / util / libs / chunky_dev.lha / chunky_dev / Demos / _shared / text.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-03-17  |  471 b   |  25 lines

  1.  
  2. #include <exec/types.h>
  3. #include <intuition/intuition.h>
  4. #include <pragma/graphics_lib.h>
  5.  
  6. #include "screen.h"
  7. #include <string.h>
  8. #include <stdio.h>
  9.  
  10. void DEMO_StatusText(STRPTR t)
  11. {
  12.   Move(DemoWindow->RPort, 20, 20);
  13.   if(t)
  14.    Text(DemoWindow->RPort, t, strlen(t))
  15.   else
  16.    SetRast(DemoWindow->RPort, 0);
  17. }
  18.  
  19. void DEMO_WriteText(STRPTR t, UWORD x, UWORD y)
  20. {
  21.   SetAPen(DemoWindow->RPort, 1);
  22.   Move(DemoWindow->RPort, x, y); Text(DemoWindow->RPort, t, strlen(t));
  23. }
  24.  
  25.